#pragma once
#include <d3d9.h>
#include "CState.h"
#include "Framework.h"
#include "Sprite.h"
#include "CSound.h"
#include "CDXManager.h"

using namespace Framework;

class StateGame:public CState,public CDXManager
{
public:
	StateGame(void);
	~StateGame(void){}
	void Init();
	void Update();
	void Render();
	void Exit();
protected:
	virtual void ProcessInput(LPDIRECT3DDEVICE9 d3ddv, float Delta);
	virtual void OnKeyDown(int KeyCode);
	virtual void OnKeyUp(int KeyCode);
private:
	IDirect3DSurface9* m_pBackGr;
	CSound *sound;
	CSprite *m_pSprite;
	Animation *m_pAnimation;
	int v;
	int x,y;
};

